package com.ruicar.afs.cloud.basic.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruicar.afs.cloud.basic.common.condition.QueryCustInfoMultipleCondition;
import com.ruicar.afs.cloud.basic.common.entity.BasicCustBaseInfo;
import com.ruicar.afs.cloud.basic.detail.vo.CustInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: Lee
 * @date 2020-05-30 04:13:03 
 * @description 
 */
public interface BasicCustBaseInfoMapper extends BaseMapper<BasicCustBaseInfo> {


    /**
     * 根据客户名称查询合同号码
     * @author ZC.GUO
     * @param var1 客户名称
     * @return 
     */
    List<String> selectContractNoByCustName(@Param("custName") String custName);

    /**
     *
     * @param var1
     * @param <String>
     */
    List<CustInfoVO> queryCustInfo(@Param("contractNo") String contractNo);


    /**
     *
     * @param var1
     * @param <String>
     */
    List findByCustInfo(@Param("query") QueryCustInfoMultipleCondition condition);
    /**
     * 根据输入的查询参数匹配（合同号，主借人身份证号码、手机号）客户号
     * @author ZC.GUO
     * @param queryNo 输入参数
     * @return
     */
    List findCustNoByQueryNo(@Param("queryNo") String queryNo);

    List fingCustByNoAndCust(@Param("contractNo")String contractNo, @Param("custRole")String custRole);
}
